import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux';
import { Router, Route, Redirect, IndexRoute, hashHistory } from 'react-router';

import wrapper from '../../wrapper';
import { tabs } from '../static/index';
import root from '../component/root';
import tasks from '../component/alltasks';


const RouteConfig = (
    <Router history={hashHistory}>
        <Route component={wrapper} currentPage="taskmanage">
            <Route component={root}>
                <IndexRoute component={tasks}/>
                <Route path="/tasks" component={tasks} />
                {/* <Route path="/aaaaa" component={crmReport} /> */}
                {/* <Route path="/week" component={tasks} />
                <Route path="/overdue" component={tasks} />
                <Route path="/completed" component={tasks} />
                <Route path="/:queueId" component={tasks} /> */}
                
            </Route>
        </Route>
        <Redirect from='*' to='/tasks' />
    </Router>
);

export default RouteConfig;